/**utsname*/
#include<stdio.h>
#include<stdlib.h>
#include<sys/utsname.h>

int main()
{
	int ret;
	struct utsname info={0};

	ret=uname(&info);

	if(-1==ret){
		perror("uname error");
		return 1;
	}
	printf("sysname:%s\n",info.sysname);
	printf("nodename:%s\n",info.nodename);
	printf("release:%s\n",info.release);
	printf("version:%s\n",info.version);
	printf("machine:%s\n",info.machine);
}
